﻿@model Dinamico.Models.ContentPart

@{ Content.Define(re =>
	   {
		   re.Title = "Order";
	  });
}

@{
    var NameId = "NameId_";
    var SurnameId = "SurnameId";

    var TownId = "TownId";
    var StreetId = "StreetId";
    var ZipId = "ZipId";
    var EmailId = "EmailId";
    var PhoneId = "PhoneId";

    var orderObj = "OrderId";
    var CaptchaId = "CaptchaId";

    var Pdf_invoiceId = "Pdf_invoiceId";
    var ByelawId = "ByelawId";
        
}

<div class="orderForm">
<div>
<span class ="orderForm_label">
Imię:
</span>
<input type="text" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateName();" onblur="@(orderObj).ValidateName();"
                        id="@NameId" />
</div>
<div>
<span class ="orderForm_label">
Nazwisko:
</span>
<input type="text" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateSurname();" onblur="@(orderObj).ValidateSurname();"
                        id="@SurnameId" />
</div>
<div>
<span class ="orderForm_label">
Miejscowość:
</span>
<input type="text" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateTown();" onblur="@(orderObj).ValidateTown();"
                        id="@TownId" />
</div>
<div>
<span class ="orderForm_label">
Ulica:
</span>
<input type="text" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateStreet();" onblur="@(orderObj).ValidateStreet();"
                        id="@StreetId" />
</div>
<div>
<span class ="orderForm_label">
Kod pocztowy:
</span>
<input type="text"  class="orderForm_zip" value=""
                        maxlength="6" 
                        onkeyup="@(orderObj).ValidateZip();" onblur="@(orderObj).ValidateZip();"
                        id="@ZipId" />
</div>
<div>
<span class ="orderForm_label">
Email:
</span>
<input type="text" name="name" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateEmail();" onblur="@(orderObj).ValidateEmail();"
                        id="@EmailId" />
</div>
<div>
<span class ="orderForm_label">
Telefon:
</span>
<input type="text" name="name" class="orderForm_input" value=""
                        onkeyup="@(orderObj).Validate();" onblur="@(orderObj).Validate();"
                        id="@PhoneId" />
</div>
<div>
<img class="orderForm_captcha" src="/upload/captcha.png" alt=""/>
</div>
<div>
<span class ="orderForm_label">
Wpisz tekst z obrazka
</span>
<input type="text" name="name" class="orderForm_input" value=""
                        onkeyup="@(orderObj).ValidateCaptcha();" onblur="@(orderObj).ValidateCaptcha();"
                        id="@CaptchaId" />
</div>
<div style="position:relative;height:90px;width:250px">

<input type="checkbox" name="Pdf_invoice"  id="@Pdf_invoiceId" style="position:absolute;top: 42px;left: 40px;"/>
<span style="position:absolute;top: 34px;left: 66px;">Chce otrzymać fakturę jako pdf.</span>

<input type="checkbox" name="ByelawId"  id="@ByelawId" style="position:absolute;top: 72px;left: 40px;"/>
<span style="position:absolute;top: 64px;left: 66px;">Akceptuję regulamin</span>

</div>

<input type="submit"  class="orderForm_submit" onclick="@(orderObj).ConfirmOrder(this);return false;" value="Potwierdzam zamówienie"/>
</div>
<script type="text/javascript">
var @(orderObj) = new Order();
@(orderObj).Init( "@NameId", "@SurnameId", "@TownId", "@StreetId", "@ZipId", "@EmailId", "@PhoneId","@CaptchaId","@Pdf_invoiceId","@ByelawId");
</script>
 <div class="big_basket">
 <div class="big_basket_contener">
 <div class="big_basket_content">
 <div id="@Dinamico.Service.Const.Basket.USER_BASKET_ORDER_ID"/>
 <div id="@Dinamico.Service.Const.Basket.USER_BASKET_PRICE_BIG"></div>
        <div id="@Dinamico.Service.Const.Basket.USER_BASKET_LIST_BIG">
        <h1> brak towarów w koszyku</h1>
            <div id="@Dinamico.Service.Const.Basket.USER_BASKET_ARTICLE_BIG"/>
        </div>
        </div>
</div>
</div>
<script type="text/javascript" language="javascript">
		    jQuery(document).ready(function () {
		        Basket.RefreshBig();

		        //.toogle()
		    });
</script>